//
//  MyTableViewCell.m
//  dddddemo
//
//  Created by lanou3g on 15/11/5.
//  Copyright © 2015年 zhk. All rights reserved.
//

#import "MyTableViewCell.h"

@implementation MyTableViewCell


- (UILabel *)titleLabel
{
    if (_titleLabel == nil) {
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(60, 10, CGRectGetWidth(self.contentView.frame) - 120, 30)];
        [self.contentView addSubview:_titleLabel];
    }
    return _titleLabel;
}

- (UILabel *)detaiLabel
{
    if (_detaiLabel == nil) {
        _detaiLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(self.titleLabel.frame) + 5, CGRectGetWidth(self.contentView.frame) - 20, CGRectGetHeight(self.contentView.frame) - 20 - CGRectGetHeight(self.titleLabel.frame))];
        [self.contentView addSubview:_detaiLabel];
    }
    return _detaiLabel;
}

- (UILabel *)timeLabel
{
    if (_timeLabel == nil) {
        _timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.titleLabel.frame) +5 , CGRectGetMinY(self.titleLabel.frame) + 10, 55, 20)];
        
        [self.contentView addSubview:_timeLabel];
    }
    return _timeLabel;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
